package edu.bw.dao.impl02;

import edu.bw.dao.UserDao;
import org.springframework.stereotype.Repository;

/**
 * 问题:edu.bw.dao.impl02.UserDaoImpl的Bean的id和edu.bw.dao.impl.UserDaoImpl的Bean的id重复,导致冲突异常
 *     org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'userDaoImpl'
 *     for bean class [edu.bw.dao.impl.UserDaoImpl] conflicts with existing,
 *     non-compatible bean definition of same name and class [edu.bw.dao.impl02.UserDaoImpl]
 * 解决方案:@Repository中需要指定Bean的id,edu.bw.dao.impl下的UserDaoImpl和edu.bw.dao.impl02下的UserDaoImpl的Bean的id不重复即可
 */
@Repository("userDaoImpl02") // <bean id="userDaoImpl02" class="edu.bw.dao.impl02.UserDaoImpl"/>
public class UserDaoImpl implements UserDao {
}
